﻿using Clothes.BLL;
using Clothes.IBLL;
using Clothes.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Clothes.UI
{
    public partial class SouYe : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                var idd = Context.Request.QueryString["idd"];
                
                CLDressIBLL cLDress = new CLDressBLL();
                if (idd =="1") {
                    List<CLDress> list = cLDress.Select(1).ReadResult();
                    this.Repeater1.DataSource = list;
                    this.Repeater1.DataBind();
                }
                if (idd == "2") {
                    List<CLDress> listnv = cLDress.Select(2).ReadResult();
                    this.Repeater1.DataSource = listnv;
                    this.Repeater1.DataBind();
                }
                if (idd == "3") {
                    List<CLDress> listtong = cLDress.Select(3).ReadResult();
                    this.Repeater1.DataSource = listtong;
                    this.Repeater1.DataBind();
                }
                

                
            }
        }
    }
}